package mybatis.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import mybatis.bean.Department;
import mybatis.bean.Employee;

public interface DepartmentDao {
	
	//使用分布查询 根据部门表的depid查询所有员工表的信息
	Department getSelectByDepidToEmp2(Integer depid);
	
	//根据部门表的depid查询所有员工表的信息
	List<Employee> getSelectByDepidToEmp(Integer depid);
	
	//根据员工表的depid查部门表的last_name
	Department getSelectOneDep(@Param("depid")Integer depid);
	
}
